<?php
/**
 * Контроллер главной страницы
 */
class IndexController extends Zend_Controller_Action
{
    protected $_title = "Вегетарианские рецепты";
    public function init()
    {
        $this->view->title = $this->_title;
    }
    
    public function indexAction()
    {
    	$recipesManager = new Default_Model_Managers_Recipes();
    	
        $this->view->recipes = $recipesManager->getRecipesList();
        $this->view->pagesCount = $recipesManager->getPagesCount();
    }
}